Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix orderByDescending behaviour #92

Merged
merged 2 commits into from
Oct 11, 2024
Merged

Fix orderByDescending behaviour #92

merged 2 commits into from
Oct 11, 2024

Conversation

griffri
Copy link
Contributor

@griffri griffri commented Oct 11, 2024

This PR fixes a bug where storage collection queries specifying orderByDescending={field_name} would only order items by the creation date, regardless of which field was specified.

It also updates the valid 'orderByDescending' test in GetCollectionTests to expect a different item when dealing with the slug and id fields, as they are now sorted alphabetically.

@griffri griffri changed the title Fix 'orderByDescending' behaviour Fix orderByDescending behaviour Oct 11, 2024
…rderByDescending to expect different items depending on alphabetical order
@griffri griffri merged commit 230bc95 into main Oct 11, 2024
3 checks passed
@griffri griffri deleted the fix/orderByDescending branch October 11, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants